export default {
  data () {
    return {
      // Model
      authGroupModel: {
        title: '功能权限',
        visible: false,
        confirmLoading: false,
        ref: 'assignUserRef',
        closable: false,
      },

      // props
      modalProps: {
        cancelText: 'Cancel',
        okText: 'Submit',
        // getContainer() {
        //   return document.querySelector('#appMain')
        // },
        okButtonProps: {
          props: {
            shape: 'round',
          },
        },
        cancelButtonProps: {
          props: {
            shape: 'round',
          },
        },
      },
    }
  },

  methods: {
    // modal submit  this.form.resetFields();
    modalSubmit (prop) {
      // const _ref = this.$refs[prop.ref];
      // prop.confirmLoading = true;

      this.actionscheckedKeys = this.actionscheckedKeys.concat(this.selectedActions)
      this.selectedActions = []

      this.authGroupModel.visible = false
    },

    // modal cancel
    modalCancel (prop) {
      const _ref = this.$refs[prop.ref]

      console.log(_ref.actions)
    },
  },
}
